What is the output of the program?

A good answer might be:

The two variables refer to the same object

alias-detector

Remember that the == operator looks only at variables. If two variables contain a reference to the same object, the operator evaluates to true. Think of the == operator as an alias-detector. Here is a picture of the situation of the last example program:


QUESTION 20:

(Thought question:) Could the equals() operator be used with aliases, as in this program?